package com.TocaLetras;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;

public class NombreActivity extends Activity {
	private ImageButton btn_continuar;
	private final int SECONDARY_ACTIVITY_REQUEST_CODE=0;
	@Override
	public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.ingreso_de_nombre);
        addListeners();
    }
	
	public void addListeners(){
		//lala
   	 btn_continuar = (ImageButton)findViewById(R.id.btn_ingreso_de_nombre_salir);
   	 btn_continuar.setOnClickListener( new View.OnClickListener() {
			
			public void onClick(View v) {
				Intent inten = new Intent(getApplicationContext(),JuegoPrincipalActivity.class);
  				inten.putExtra("mkey","Hola");
  				startActivityForResult(inten,SECONDARY_ACTIVITY_REQUEST_CODE);
				finish();
			}
		});
}

}
